@import "variables";
html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body,
#doc {
    position: relative;
    height: 100%;
    word-break: break-all;
}

@media (min-width: $tablet-breakpoint) {
    #doc {
        width: $tablet-breakpoint-screen;
        .navbar-fixed-top {
            width: $tablet-breakpoint-screen;
            left: 0;
            right: 0;
            margin: 0 auto;
        }
    }
}

#doc-body {
    -webkit-overflow-scrolling: touch;
}

// absolute bottom
#doc .align-parent-bottom {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
}

// 验证码
#imgcode {
    padding: 0;
    width: $verified-img-code-width;
    height: $verified-img-code-height;
}

// navbar;
.navbar {
    min-height: $navbar-height;
    width: 100%;
    border: none;
    .navbar-title {
        font-size: 16px;
        height: $navbar-height;
        line-height: $navbar-height;
        margin: 0 $navbar-height;
        text-align: center;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .navbar-icon {
        width: $navbar-height;
        height: $navbar-height;
        text-align: center;
        vertical-align: middle;
        cursor: pointer;
        &:active {
            background: $transparent-black;
        }
        .iconfont {
            line-height: $navbar-height;
            top: 0px;
            color: $text-color-white-deep;
        }
    }
}

.form-horizontal {
    .form-group {
        border: none;
        border-bottom: 1px solid #e5e5e5;
        .form-control {
            border: none;
            box-shadow: none;
        }
        &.form-group-normal {
            border: none;
            .form-control {
                border: 1px solid #ccc;
            }
        }
        // help-block 文字溢出处理
        .help-block {
            width: auto;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        &.has-error,
        &.has-success,
        &.has-warnning {
            .help-block {
                display: block;
            }
        }
        button[type="submit"] {
            float: right;
            top: 3px;
        }
        button[type="submit"] + .help-block {
            margin-right: 72px;
        }
    }
    .form-group-tip {
        border: none;
        margin-top: 0px;
    }
    .form-group-submit {
        border: none;
        margin-top: 8px;
    }
    .has-action {
        .input-action-trigger {
            font-size: 18px;
        }
    }
    .control-label {
        color: $label-iconfont-color;
        text-align: left;
        .iconfont {
            font-size: $label-iconfont-size;
            color: $label-iconfont-color;
            margin-right: $label-iconfont-right;
        }
    }
    .ulite-js-checkbox {
        padding-top: 3px;
    }
}

#doc-content {
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
}


/* 居中modal框 hack*/

.modal>.vertical-middle-block {
    padding: 0px 8px;
    height: 100%;
    pointer-events: none;
}

.modal>.vertical-middle-block>.vertical-middle-block-cell {
    margin: 0px;
    width: 100%;
    max-width: 718px;
    pointer-events: auto;
}

.modal-content {
    text-align: left;
}

.modal-content .btn-raised {
    box-shadow: none;
}

.protocal-container iframe {
    width: 100%;
    height: 350px;
    overflow: auto;
    overflow-scrolling: touch;
    -webkit-overflow-scrolling: touch;
}

.carousel {
    .inner-item {
        width: 100%;
        height: 420px;
        @extend %background-cover;
    }
    .carousel-caption {
        left: 0;
        right: 0;
        bottom: 0;
        padding: 12px 16px;
        background: rgba(00,00,00,.6);
        text-align: left;
    }
}

.content-panel {
    background: #FFFFFF;
    .content-panel-body {
        min-height: 0;
        &.content-panel-body-full {
            padding: 0;
        }
    }
    &~& {
        margin-top: 0px;
    }
}

.content-outside-title {
    line-height: 36px;
    padding: 0 16px;
    font-size: 15px;
}

.nowrap-content {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wrap-content {
    white-space: normal;
}

.fixed-left-container {
    padding-left: $fixed-left-width;
    width: auto;
    .fixed-left {
        float: left;
        width: $fixed-left-width;
        margin-left: -$fixed-left-width;
    }
}

.fixed-right-container {
    padding-right: $fixed-right-width;
    width: auto;
    .fixed-right {
        float: right;
        width: $fixed-right-width;
        margin-right: -$fixed-right-width;
        text-align: right;
    }
}

.background-cover {
    @extend %background-cover;
}

// 插件 toastr
#toast-container {
    bottom: 5%;
}

.text-money {
    color: #e95f17;
    .text-price {
        font-size: 16px;
    }
}

.has-icon-line {
    position: relative;
    line-height: 24px;
    padding-left: 32px;
    .iconfont {
        position: absolute;
        top: 50%;
        margin-top: -12px;
        left: 0;
    }
    &.icon-line-right {
        padding-left: 0px;
        padding-right: 32px;
        .iconfont {
            left: auto;
            right: 0px;
        }
    }
    &.icon-line-both {
        .iconfont.icon-line-right {
            left: auto;
            right: 0px;
        }
    }
}

.horizontal-padding-sm {
    padding-left: 12px;
    padding-right: 8px;
}

.centeral-container {
    position: absolute;
    top: 45px;
    bottom: 0;
    left: 0;
    right: 0;
    .centeral-content {
        width: 100%;
    }
}

#loadingContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
}

#loading {
    position: absolute;
    top: 40%;
    left: 50%;
    margin-left: -63px;
    padding: 16px 32px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, .65);
    z-index: 1
}

.cssload-loader {
    position: relative;
    left: calc(50% - 31px);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    -o-border-radius: 50%;
    -ms-border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    perspective: 780px;
}

.cssload-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    border-radius: 50%;
    -o-border-radius: 50%;
    -ms-border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
}

.cssload-inner.cssload-one {
    left: 0%;
    top: 0%;
    animation: cssload-rotate-one 1.15s linear infinite;
    -o-animation: cssload-rotate-one 1.15s linear infinite;
    -ms-animation: cssload-rotate-one 1.15s linear infinite;
    -webkit-animation: cssload-rotate-one 1.15s linear infinite;
    -moz-animation: cssload-rotate-one 1.15s linear infinite;
    border-bottom: 3px solid rgb(255, 255, 255);
}

.cssload-inner.cssload-two {
    right: 0%;
    top: 0%;
    animation: cssload-rotate-two 1.15s linear infinite;
    -o-animation: cssload-rotate-two 1.15s linear infinite;
    -ms-animation: cssload-rotate-two 1.15s linear infinite;
    -webkit-animation: cssload-rotate-two 1.15s linear infinite;
    -moz-animation: cssload-rotate-two 1.15s linear infinite;
    border-right: 3px solid rgb(255, 255, 255);
}

.cssload-inner.cssload-three {
    right: 0%;
    bottom: 0%;
    animation: cssload-rotate-three 1.15s linear infinite;
    -o-animation: cssload-rotate-three 1.15s linear infinite;
    -ms-animation: cssload-rotate-three 1.15s linear infinite;
    -webkit-animation: cssload-rotate-three 1.15s linear infinite;
    -moz-animation: cssload-rotate-three 1.15s linear infinite;
    border-top: 3px solid rgb(255, 255, 255);
}

@keyframes cssload-rotate-one {
    0% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@-o-keyframes cssload-rotate-one {
    0% {
        -o-transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        -o-transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@-ms-keyframes cssload-rotate-one {
    0% {
        -ms-transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        -ms-transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@-webkit-keyframes cssload-rotate-one {
    0% {
        -webkit-transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        -webkit-transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@-moz-keyframes cssload-rotate-one {
    0% {
        -moz-transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        -moz-transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes cssload-rotate-two {
    0% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@-o-keyframes cssload-rotate-two {
    0% {
        -o-transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
        -o-transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@-ms-keyframes cssload-rotate-two {
    0% {
        -ms-transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
        -ms-transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@-webkit-keyframes cssload-rotate-two {
    0% {
        -webkit-transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
        -webkit-transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@-moz-keyframes cssload-rotate-two {
    0% {
        -moz-transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
        -moz-transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes cssload-rotate-three {
    0% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

@-o-keyframes cssload-rotate-three {
    0% {
        -o-transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
        -o-transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

@-ms-keyframes cssload-rotate-three {
    0% {
        -ms-transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
        -ms-transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

@-webkit-keyframes cssload-rotate-three {
    0% {
        -webkit-transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
        -webkit-transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

@-moz-keyframes cssload-rotate-three {
    0% {
        -moz-transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
        -moz-transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}
.btn-language-pos{
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 10000;
}
.btn-language-pos .languageSwitch {
    min-width: 0px;
}

.btn-language-pos .languageSwitch a {
    padding:3px 12px;
}
.areaCode{
    position: absolute;
    .dropdown-menu{
        height: 180px;
        width: 300px;
        overflow-y: scroll;
    }
    a[data-toggle=dropdown],a[data-toggle=dropdown]:focus{
        font-size:16px ;
        color: #333;
        height: 36px;
        line-height: 36px;
    }
}
#doc-content input.paddingArea{
    padding-left: 58px;
}
//身份证
#idCardModal,#idCardChangeModal,#confirmationModal{
    .padding-content {
        text-align: right;
    }
    .horizontal-padding{
        padding-right: 8px;
    }
    .modal-dialog{
        height: 80%;
        position: absolute;
        bottom: 0;
        left: 0;
        .modal-content{
            height: 100%;
            border-radius:initial ;
            border: 0;
        }
    }   
    .container{
        max-width: 800px;
    }
    .modal-header{
        padding: 0;
        border: 0;
        height: 8%;
        background: #ca8700;
        position: relative;
        .header-title{
            color: #fff;
            position: absolute;
            left: 50%;
            top: 50%;
            width: 160px;
            text-align: center;
            margin-left: -80px;
            margin-top: -11px;
        }
        .header-cancel,.header-reset,
        .confirmation-cancel{
            color: #fff;
            position: absolute;
            right: 16px;
            top: 50%;
            font-size: 13px;
            margin-top: -13px;
            line-height: 30px;
            height: 30px;
            cursor: pointer;
        }
        .confirmation-back{
            color: #fff;
            position: absolute;
            top: 50%;
            font-size: 13px;
            margin-top: -13px;
            line-height: 30px;
            height: 30px;
            left: 16px;
        }
    }     
    .modal-body{
        height: 92%;
        padding: 0;
        .edit-box{
            box-sizing: border-box;
            border-left:16px solid #f1f1f1;
            border-right:16px solid #f1f1f1;
        }
    }
    .vertical-middle-block{
        position: relative;
        padding: 0;
    }
    .vertical-middle-block-cell{
        vertical-align:initial;
        max-width: 800px;
    }  
    
}
.header-title{
    font-size: 16px;
}
#idCardChangeModal{
    .modal-dialog{
        .modal-content{
            background: #f1f1f1;
        }
    }
    .modal-body{
        #uploadForm{
            height: 100%;
        }
        .camera-container{
            height: 36%;
            background: #fff;
            width: 100%;
            position: relative;
            box-sizing: border-box;
            border-top:16px solid #f1f1f1;
            border-left:16px solid #f1f1f1;
            border-right:16px solid #f1f1f1;
            .camera-border{
                height: 58%;
                width: 160px;
                position: absolute;
                top: 9.6%;
                left: 50%;
                margin-left: -80px;
                background:url(image/camera.png) center no-repeat ;
                background-size: 100% 100%;
            }
            .camera-tip{
                position: absolute;
                font-size: 14px;
                bottom: 5%;
                left:50%;
                text-align: center;
                width: 84px;
                margin-left: -42px;
                color: #666;
            }
        }
        .tip-container{
            font-size: 13px;
            word-wrap: break-word;
            white-space: normal;
            line-height: 20px;
            margin-bottom: 24px;
            padding: 0 16px;
            text-indent: 28px;
            padding-top:16px;
        }
    }
}
.get-photo,.get-photo{
    height: 100%;
    width: 100%;
}
.edit-container{
    height: 40px;
    width: 100%;
    background: #fc7c11;
    color: #fff;
    line-height: 40px;
    text-align: center;
    border-radius:4px ;
    border: 0;
    outline: none;
}
//优惠券
.coupon-modal{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    .opacity{
        width: 100%;
        height: 100%;
        z-index: 1040;
        background-color: #000;
        opacity: .5;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }
    .container{
        width: 100%;
        max-width: 750px;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 10000;
    }
    .modal-body{
        padding: 0;
        height: 232px;
        background: transparent;
        margin-top: 108px;
        .robButton{
            width: 80px;
            height: 85px;
            position: absolute;
            left: 50%;
            bottom: 32px;
            margin-left: -42px;  
            cursor: pointer;          
            line-height: 82px;
            text-align: center;
            font-size: 32px;
            color: #fff;            
        }
        .coupon-close{
            width: 32px;
            height: 32px;
            position: absolute;
            left: 50%;
            bottom: -82px;
            margin-left: -16px; 
            background:url(CouponPage/image/close.png) center no-repeat ;
            cursor: pointer;     
        }
        .coupon-type{
            position: absolute;
            text-align: center;
            width: 100%;
            top: 9px;
            font-size: 12px;
            color: #c1892e;
        }
        .coupon-congratulation{
            position: absolute;
            text-align: center;
            width: 100%;
            top: 24px;
            font-size: 20px;
            color: #fff;
        }
        .coupon-tip{
            position: absolute;
            text-align: center;
            width: 100%;
            bottom: 15px;
            font-size: 12px;
            color: #fff;
        }
        .coupon-price,.coupon-discount{
            position: absolute;
            text-align: center;
            width: 100%;
            top: 38px;
            font-size: 13px;
            color: #d96830;
            margin-left: -6px;
            span{
                font-size: 24px;
            }
        }
        .coupon-discount{
            margin-left: 0px;
        }
        .coupon-receive,.coupon-again{
            position: absolute;
            left: 0;
            bottom: 20px;
            height: 26px;
            line-height: 26px;
            width: 100%;
            text-align: center;
            color: #fff;
            span{
                font-size: 12px;
                border: 1px solid #fff;
                border-radius: 3px;
                padding: 5px 22px;
                cursor: pointer;
            }
        }
        &.rob{
            background:url(CouponPage/image/rob.png) center no-repeat ;
            background-size: 312px 232px;
        }
        &.snag{
            background:url(CouponPage/image/snag.png) center no-repeat ;
            background-size: 304px 223px;
            .coupon-type{
                top: 82px;
            }            
            .coupon-price,.coupon-discount{
                top: 116px;
                font-size: 18px;
                margin-left: -2px;
                span{
                    font-size: 30px;
                }
            }      
            .coupon-discount{
                margin-left: 0px;
            }      
        }
        &.import{
            background:url(CouponPage/image/import.png) center no-repeat ;
            background-size: 213px 232px;
        }
        &.lose{
            background:url(CouponPage/image/lose.png) center no-repeat ;
            background-size: 304px 223px;
            .coupon-type{
                top: 90px;
                margin-left: -8px;            
                transform:rotate(-15deg);
                -ms-transform:rotate(-15deg);
                -moz-transform:rotate(-15deg);
                -webkit-transform:rotate(-15deg); 
                -o-transform:rotate(-15deg); 
            }
        }
        .coupon-input{
            height: 26px;
            width: 152px;
            background: #fff;
            position: absolute;
            left: 50%;
            border-radius:4px ;
            margin-left: -76px;
            font-size:10px ;
            &.mobile{
                top: 108px;
                .areaCode{
                    display: inline-block;
                    margin-right: 6px;
                    position: relative;
                    a[data-toggle=dropdown],a[data-toggle=dropdown]:focus{
                        height: 26px;
                        line-height: 26px;
                        color: rgb(102,102,102);
                        font-size:10px ;
                        padding-left: 6px;
                    }
                    .dropdown-menu{
                        width: 240px;
                    }
                }
                .requestMobile{
                    height: 26px;
                    border: 0;
                    width: 98px;
                    outline: none;
                    border-radius:3px ;
                    display: inline-block;
                }
            }
            &.password{
                top: 143px;
                .requestCode{
                    height: 26px;
                    border: 0;
                    width: 80px;
                    outline: none;
                    border-radius:3px ;
                    float: left;
                    padding-left: 6px;
                    text-align: center;
                }
                .getCode{
                    height: 26px;
                    line-height: 26px;
                    color: #d96830;
                    float: right;
                    margin-right: 6px;
                    min-width: 60px;
                    text-align: center;
                }
            }
        }
    }
}
#enter-hotel-coupon{
    position: fixed;
    right: 0;
    left: 0;
    bottom: 198px; 
    width: 100%;  
    .enter-hotel-coupon-box{
        max-width: 750px;
        margin: 0 auto;
        position: relative;
    }
    a{
        width: 70px;
        height: 70px;
        background:url(CouponPage/image/ingress.png) center no-repeat ;
        background-size: 70px 70px;
        position: absolute;
        right: 0;
        top: 0;
        .text-coupon{
            position: absolute;
            font-size: 12px;
            color: #fff;
            left: 50%;
            margin-left: -11px;
            top: 36px;
        }      
    }
    .enter-coupon-close{
        position: absolute;
        width: 16px;
        height: 16px;
        text-align: center;
        line-height: 14px;
        border: 1px solid #db6c33;
        color: #db6c33;
        border-radius: 50%;
        top: -16px;
        right: 70px;          
    }  
}
.submitConfir-box{
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 20px;
    box-sizing: border-box;
    border-left:16px solid #fff;
    border-right:16px solid #fff;
}

#bindMobileModal{
    .icon-phones{
        background:url(image/phone.png) no-repeat ;
        background-size: 9px 16px;
        display: block;
        width: 9px;
        height: 16px;
        margin-top: 10px;
    }
    .col-xs-1 {
        padding: 0;
    }
    .home-icon{
        background:url(image/back-home.png) no-repeat ;
        background-size: 21px 19px;
        display: block;
        width: 21px;
        height: 19px;
        position: absolute;
        left: 50%;
        top:50%;
        margin-left: -10px;
        margin-top:-10px;
    }
    .icon-yanzheng{
        background:url(image/yanzheng.png) no-repeat ;
        background-size: 14px 16px;
        display: block;
        width: 14px;
        height: 16px;
        margin-top: 10px;
    }    
    .paddingArea{
        padding-left: 50px;
    }
    .form-control{
        font-size:14px ;
    }   
}
@media (max-width: 413px) {
    #idCardChangeModal{
        .modal-body{
            .camera-container{
                .camera-border{
                    width: 144px;
                    margin-left: -72px;
                }
            } 
            .tip-container{
                line-height: 18px;
                margin-bottom: 14px;
            }                       
        }
    }
    .edit-container{
        height: 38px;
        line-height: 38px;
    } 
}
@media (max-width: 320px) {
    #idCardChangeModal{
        .modal-body{
            .camera-container{
                .camera-border{
                    width: 120px;
                    margin-left: -60px;
                }
            }  
            .tip-container{
                font-size: 12px;
                line-height: 16px;
                margin-bottom: 10px;
            }           
        }
    }  
    .edit-container{
        height: 36px;
        line-height: 36px;
    }   
    .header-title{
        font-size: 14px;
    }   
}
@media (max-width: 420px) {
    .carousel .inner-item{
        height: 240px;
    }
}
@media (max-width: 380px) {
    .carousel .inner-item{
        height: 214px;
    }
}
@media (max-width: 320px) {
    .carousel .inner-item{
        height: 180px;
    }
}   